package ${modelMetadata.packagePrefix}.${modelMetadata.subsystem}.web.struts2.form;

import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

/**
 * <p>
 * Title:${modelMetadata.modelDescription} ${modelMetadata.javaModelNameUpperCamelCase}${modelMetadata.actionFormSuffer}
 * </p>
 * <p>
 * Description:
 * </p>
 * <p>
 * Copyright: Copyright (c) 2012
 * </p>
 * <p>
 * Company: liss
 * </p>
 * @author <a href="mailto:shushanlee@msn.com">liss</a>
 * @version 1.0
 * @see 
 * @since   1.0
 */
public class ${modelMetadata.javaModelNameUpperCamelCase}${modelMetadata.actionFormSuffer} extends ActionForm {

<#list modelMetadata.fieldMetadatas as item>
	/**
	 * ${item.displayName}
	 */
	private ${item.propertyType} ${item.propertyNameLowerCamelCase};
	
</#list>
	
<#list modelMetadata.fieldMetadatas as item>
	/**
	 * ${item.propertyNameLowerCamelCase} getter
	 * @return the ${item.propertyNameLowerCamelCase}
	 */
	public ${item.propertyType} get${item.propertyNameUpperCamelCase}() {
		return this.${item.propertyNameLowerCamelCase};
	}
	
	/**
	 * ${item.propertyNameLowerCamelCase} setter
	 * @param ${item.propertyNameLowerCamelCase} the ${item.propertyNameLowerCamelCase} to set
	 */
	public void set${item.propertyNameUpperCamelCase}(${item.propertyType} ${item.propertyNameLowerCamelCase}) {
		this.${item.propertyNameLowerCamelCase} = ${item.propertyNameLowerCamelCase};
	}
	
</#list>
	/** 
	 * Method validate
	 * @param mapping
	 * @param request
	 * @return ActionErrors
	 */
	public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
		return null;
	}

	/** 
	 * Method reset
	 * @param mapping
	 * @param request
	 */
	public void reset(ActionMapping mapping, HttpServletRequest request) {
		
	}
}